package com.biboheart.adapter.compiler.enums;

import com.biboheart.adapter.support.BaseEnum;

public enum TokenType implements BaseEnum<String, String> {
    TOKEN_KEYWORD("keyword", "基本字"),
    TOKEN_DELIMITERS("delimiters", "分隔符"),
    TOKEN_OPERATOR("operator", "运算符"),
    TOKEN_LOGICAL("logical", "逻辑符"),
    TOKEN_VARIABLE("variable", "变量"),
    TOKEN_CONSTANT("constant", "常量"),
    TOKEN_NUMBER("number", "数值"),
    TOKEN_STRING("string", "字符串"),
    TOKEN_NULL("null", "空对象"),
    ;

    private final String code;
    private final String desc;

    TokenType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String desc() {
        return desc;
    }
}
